package org.rency.ues.dal.repository;

import java.util.List;

import org.rency.ues.dal.entity.EncryptDataDO;

public interface EncryptDataRepository {

	public EncryptDataDO get(int id);
	
	public EncryptDataDO getByTicket(String ticket);
	
	public boolean delete(int id);
	
	public boolean deleteByTicket(String ticket);
	
	public boolean deleteWithRela(String ticket);
	
	public boolean saveWithRela(EncryptDataDO entity,String dataHashString);
	
	public boolean save(EncryptDataDO entity);
	
	public String genTicketId();
	
	/**
	 * 获取到期数据
	 * </br>Created on 2016年5月4日
	 * @return
	 */
	public List<EncryptDataDO> getWaitExpireDate(int pageSize,int pageNo);
	
}